package article_service

import "hytx_media/models"

type ArticleCategory struct {
	Id        int
	Title     string
	Sort      int
	ParentId  int
	CreatedAt string
	UpdatedAt string
	IsEnabled bool
}

func (a *ArticleCategory) GetAll() ([]*models.ArticleCategory, error) {
	var (
		articleCategory []*models.ArticleCategory
	)

	articleCategory, err := models.GetArticleCategoryAll()

	if err != nil {
		return nil, err
	}
	return articleCategory, err
}
